19 research outputs found

    Extending Context-Sensitivity in Term Rewriting

    Full text link
    We propose a generalized version of context-sensitivity in term rewriting based on the notion of "forbidden patterns". The basic idea is that a rewrite step should be forbidden if the redex to be contracted has a certain shape and appears in a certain context. This shape and context is expressed through forbidden patterns. In particular we analyze the relationships among this novel approach and the commonly used notion of context-sensitivity in term rewriting, as well as the feasibility of rewriting with forbidden patterns from a computational point of view. The latter feasibility is characterized by demanding that restricting a rewrite relation yields an improved termination behaviour while still being powerful enough to compute meaningful results. Sufficient criteria for both kinds of properties in certain classes of rewrite systems with forbidden patterns are presented

    Termination of Rewriting with and Automated Synthesis of Forbidden Patterns

    Full text link
    We introduce a modified version of the well-known dependency pair framework that is suitable for the termination analysis of rewriting under forbidden pattern restrictions. By attaching contexts to dependency pairs that represent the calling contexts of the corresponding recursive function calls, it is possible to incorporate the forbidden pattern restrictions in the (adapted) notion of dependency pair chains, thus yielding a sound and complete approach to termination analysis. Building upon this contextual dependency pair framework we introduce a dependency pair processor that simplifies problems by analyzing the contextual information of the dependency pairs. Moreover, we show how this processor can be used to synthesize forbidden patterns suitable for a given term rewriting system on-the-fly during the termination analysis.Comment: In Proceedings IWS 2010, arXiv:1012.533

    Incremental Checking of Well-Founded Recursive Specifications Modulo Axioms

    Get PDF
    We introduce the notion of well-founded recursive order-sorted equational logic (OS) theories modulo axioms. Such theories define functions by well-founded recursion and are inherently terminating. Moreover, for well-founded recursive theories important properties such as confluence and sufficient completeness are modular for so-called fair extensions. This enables us to incrementally check these properties for hierarchies of such theories that occur naturally in modular rule-based functional programs. Well-founded recursive OS theories modulo axioms contain only commutativity and associativity-commutativity axioms. In order to support arbitrary combinations of associativity, commutativity and identity axioms, we show how to eliminate identity and (under certain conditions) associativity (without commutativity) axioms by theory transformations in the last part of the paper.unpublishednot peer reviewe

    Applications and generalizations of context-sensitive term rewriting

    No full text
    Zsfassung in dt. SpracheTermersetzung ist ein Formalismus der in vielen Gebieten der theoretischen Informatik verwendet wird, in denen symbolische Gleichungen bzw. symbolische Berechnungen eine Rolle spielen. Sie findet insbesondere in den Gebieten der gleichungsbasierten Programmierung, der formalen Verifikation von Software und im automatischen Beweisen ihre Anwendung. Die prinzipielle Idee hinter Termersetzung ist Terme zu vereinfachen, indem Teilterme durch einfachere aber semantisch gleiche Terme ersetzt werden. Da es a priori unklar ist welche Teilterme zuerst vereinfacht werden sollen, ist der Vorgang des Termersetzens hochgradig nichtdeterministisch. In der Praxis spielt die Reihenfolge in der Vereinfachungen vorgenommen werden allerdings oft eine große Rolle, beispielsweise wenn bestimmte Vereinfachungssequenzen wesentlich schneller zum gewünschten Resultat führen als andere, oder bestimmte problematische Vereinfachungssequenzen zu Nichtterminierung führen.Deshalb versucht man den Nichtdeterminismus der Termersetzung durch Ersetzungsstrategien zu verringern oder zu eliminieren. Ein wichtiger konkreter Ansatz für die Definition solcher Strategien ist kontextsensitives Termersetzen. Im ersten Teil der Dissertation wird kontextsensitives Termersetzen verwendet um Reduktionen bezüglich bedingter Termersetzungssysteme zu simulieren. In bedingten Termersetzungssystemen werden für jede Ersetzungsregel Bedingungen definiert unter denen die Regel anwendbar ist. Durch die Verwendung von kontextsensitivem Termersetzen ist es tatsächlich möglich bedingtes Termersetzen akkurat durch unbedingtes kontextsensitives zu simulieren. Die Dissertation enthält eine Transformation, die bedingte Termersetzungssysteme in unbedingte kontextsensitive übersetzt, wobei nach der Übersetzung exakt die selben Resultate berechnet werden können wie davor. Diese Transformation wird in weiterer Folge dazu benutzt praktisch relevante Eigenschaften von bedingten Ersetzungssystemen, wie zum Beispiel operationale Terminierung oder CE-operationale Terminierung, zu verifizieren, indem man Terminierungseigenschaften des transformierten unbedingten Systems nachweist. Dieses Vorgehen ermöglicht es existierende Methoden für die Terminierungsanalyse von unbedingten Ersetzungssystemen wiederzuverwenden.Im zweiten Teil der Dissertation wird ein neuer Ansatz zu eingeschränktem Termersetzen eingeführt, der kontextsensitives Termersetzen verallgemeinert. In diesem Ansatz werden sogenannte "Forbidden Patterns" verwendet um Teile eines Terms zu identifizieren, in denen keine Vereinfachungen durchgeführt werden dürfen. Es zeigt sich, dass viele wichtige Standardreduktionsstrategien für Termersetzung als Spezialfall von diesem neuen Ansatz hervorgehen. Trotz dieser Allgemeinheit beruht Termersetzung mit "Forbidden Patterns" auf vergleichsweise einfachen und gut handhabbaren Grundprinzipien. Dadurch ist der Ansatz einfach zu verwenden und die Analyse von Ersetzungssystemen mit "Forbidden Patterns" in der Praxis effizient möglich. Die Dissertation enthält Konfluenzkriterien, Terminierungskriterien und "Completenesskriterien" für Termersetzung mit "Forbidden Patterns". Außerdem wird gezeigt wie man für ein gegebenes Termersetzungssystem passende "Forbidden Patterns" automatisch generieren kann.Im dritten Teil der Dissertation wird das Softwaretool VMTL vorgestellt, das Termersetzungssysteme automatisch auf Terminierung untersucht. Das Tool enthält Implementierungen aller Methoden zur Terminierungsanalyse, die in der Dissertation vorgestellt werden und unterstützt insbesondere bedingte Systemen und "Forbidden Patterns".Term rewriting is a formalism that enables us to efficiently deal with many problems related to symbolic equations. It is particularly used in fields like equational programming, formal verification of software and automated deduction. The simple idea behind term rewriting is to replace equals by equals in an object (in our case terms) until a form is reached, which represents the result of the computation. In an operational sense the formalism of term rewriting does not suggest how this replacement is carried out. Thus, in general rewrite derivations (as we call sequences of replacements) are highly nondeterministic. Especially in practical fields like equational programming and executable specifications it is important to have means to guide rewrite derivations and thus to reduce their nondeterminism in order to make them more efficient and/or produce the desired results.One major approach to achieve this is context-sensitivity. The idea of context-sensitive rewriting is to exploit the term structure of the objects in order to identify positions at which replacements are allowed and others where no replacements may occur. In the first part of this thesis we investigate the benefit one gains from using traditional notions of context-sensitivity in the simulation of conditional rewrite systems by unconditional ones. Conditional rewriting is an extension of ordinary rewriting where rewrite rules are guarded by conditions. These conditional rules may only be used for computations if the conditions are satisfied. It turns out that the use of context-sensitivity significantly improves the accuracy one can achieve in this simulation. Indeed, we show that by using a concrete transformation from conditional rewrite system into unconditional context-sensitive ones, the computational power of the conditional and transformed system is entirely the same. Hence, the accuracy of a simulation of conditional rewriting by using this transformation is arguably optimal. Besides simulation, we use this transformation to derive criteria for the practically crucial properties of operational termination and CE-operational termination of conditional rewrite systems based on (local) termination properties of the transformed unconditional rewrite systems. The latter properties are easier to verify and an extensive amount of existing research deals with verifying these properties automatically. The second part of the thesis introduces a new approach to context-sensitivity in term rewriting. The basic idea is to define term patterns, which are called "forbidden patterns", that determine parts of a term that are forbidden for reduction whenever they match the term.This new formalism is more general than many existing approaches to context-sensitivity. Nevertheless, the definition of rewriting with forbidden patterns is comparatively simple, thus making the approach feasible in practice despite its expressiveness. We develop a basic infrastructure of results concerning rewriting with forbidden patterns, providing in particular criteria for completeness, confluence and termination. Moreover, we provide a method to automatically infer sets of forbidden patterns for given rewrite systems that impose desirable restrictions on the induced rewrite relation.Finally, in the third part of the thesis, we describe the termination laboratory VMTL,that has been developed to evaluate the methods for the automated termination analysis of conditional rewrite systems as well as rewrite systems with forbidden patterns introduced in this thesis.16

    Characterizing and Proving Operational Termination of Deterministic Conditional Term Rewriting Systems

    No full text
    We investigate the practically crucial property of operational termination of deterministic conditional term rewriting systems (DCTRSs), an important declarative programming paradigm. We show that operational termination can be equivalently characterized by the newly introduced notion of context-sensitive quasi-reductivity. Based on this characterization and an unraveling transformation of DCTRSs into context-sensitive (unconditional) rewrite systems (CSRSs), context-sensitive quasi-reductivity of a DCTRS is shown to be equivalent to termination of the resulting CSRS on original terms (i.e. terms over the signature of the DCTRS). This result enables both proving and disproving operational termination of given DCTRSs via transformation into CSRSs. A concrete procedure for this restricted termination analysis (on original terms) is proposed and encouraging benchmarks obtained by the termination tool VMTL, that utilizes this approach, are presented. Finally, we show that the context-sensitive unraveling transformation is sound and complete for collapse-extended termination, thus solving an open problem of [Duran et al. 2008]

    On Operational Termination of Deterministic Conditional Rewrite Systems

    No full text
    We characterize the practically important notion of operational termination of deterministic conditional term rewriting systems (DCTRSs) by context-sensitive termination of a transformed TRS on original terms. Experimental evaluations show that this new approach yields more power when verifying operational termination than existing ones. Moreover, it allows us to disprove operational termination of DCTRSs

    Termination of lazy rewriting revisited

    Get PDF
    Lazy rewriting is a proper restriction of term rewriting that dynamically restricts the reduction of certain arguments of functions in order to obtain termination. In contrast to context-sensitive rewriting reductions at such argument positions are not completely forbidden but delayed. Based on the observation that the only existing (non-trivial) approach to prove termination of such lazy rewrite systems is flawed, we develop a modified approach for transforming lazy rewrite systems into context-sensitive ones that is sound and complete with respect to termination.

    Incremental Checking of Well-Founded Recursive Specifications Modulo Axioms

    Get PDF
    We introduce the notion of well-founded recursive order-sorted equational logic (OS) theories modulo axioms. Such theories define functions by well-founded recursion and are inherently terminating. Moreover, for well-founded recursive theories important properties such as confluence and sufficient completeness are modular for so-called fair extensions. This enables us to incrementally check these properties for hierarchies of such theories that occur naturally in modular rule-based functional programs. Well-founded recursive OS theories modulo axioms contain only commutativity and associativity-commutativity axioms. In order to support arbitrary combinations of associativity, commutativity and identity axioms, we show how to eliminate identity and (under certain conditions) associativity (without commutativity) axioms by theory transformations in the last part of the paper
    corecore